const file = require('fs');
const path = require("path");


class File {
    //通过目录获取所有文件名，不带后缀
    static directoryRouter(path) {
        //获取所有路由
        return file.readdirSync(path).map(item => item.split(".")[0]);;
    }
}

module.exports = File;
